const joi = require('joi');

const position_id = joi.number().required();
const position_name = joi.string().required();
const start = joi.number().required();
const page_num = joi.number().required();
const page_size = joi.number().required();
const user_id = joi.number().required();
const add_date = joi.date().required();

// 添加岗位
exports.addPosition_schema = {
	body: {
		position_name,
		user_id,
		add_date
	}
}

// 删除岗位
exports.deletePosition_schema = {
	body: {
		position_id
	}
}

// 更新岗位
exports.updatePosition_schema = {
	body: {
		position_id,
		position_name
	}
}

// 启用，禁用岗位
exports.startPosition_schema = {
	body: {
		position_id,
		start
	}
}

// 分页查询岗位列表
exports.getPositionList_schema = {
	body: {
		page_num,
		page_size
	}
}